package com.atguigu.gmall.realtime.commont;

/**
 * @Author lzc
 * @Date 2023/4/19 14:46
 */
public class Constant {
    
    public static final String KAFKA_SERVERS = "hadoop162:9092,hadoop163:9092,hadoop164:9092";
    
    public static final String TOPIC_ODS_DB = "ods_db";
    public static final String TOPIC_ODS_LOG = "ods_log";
    
    public static final String MYSQL_HOST = "hadoop162";
    public static final int mysql_port = 3306;
    
    public static final String PHOENIX_DRIVER = "org.apache.phoenix.jdbc.PhoenixDriver";
    public static final String PHOENIX_URL = "jdbc:phoenix:hadoop162,hadoop163,hadoop164:2181";
    public static final String TOPIC_DWD_TRAFFIC_PAGE = "dwd_traffic_page";
    
    public static final String TOPIC_DWD_TRAFFIC_ERR = "dwd_traffic_err";
    
    public static final String TOPIC_DWD_TRAFFIC_DISPLAY = "dwd_traffic_display";
    public static final String TOPIC_DWD_TRAFFIC_START = "dwd_traffic_start";
    public static final String TOPIC_DWD_TRAFFIC_ACTION = "dwd_traffic_action";
    public static final String TOPIC_DWD_INTERACTION_COMMENT_INF = "dwd_interaction_comment_info";
    
    public static final String TOPIC_DWD_TRADE_CART_ADD = "dwd_trade_cart_add";
    
    public static final String TOPIC_DWD_TRADE_ORDER_DETAIL = "dwd_trade_order_detail";
    
    public static final String TOPIC_DWD_TRADE_CANCEL_DETAIL = "dwd_trade_cancel_detail";
    
    public static final String TOPIC_DWD_TRADE_PAY_DETAIL_SUC = "dwd_trade_pay_detail_suc";
    
    public static final String TOPIC_DWD_TRADE_ORDER_REFUND = "dwd_trade_order_refund";
    
    public static final String TOPIC_DWD_TRADE_REFUND_PAY_SUC = "dwd_trade_refund_pay_suc";
    
    public static final String MYSQL_DRIVER = "com.mysql.cj.jdbc.Driver";
    
    public static final String MYSQL_URL = "jdbc:mysql://hadoop162:3306?useSSL=false";
    
    public static final String CLICKHOUSE_DRIVER = "com.clickhouse.jdbc.ClickHouseDriver";  // 新版本
    public static final String CLICKHOUSE_URL = "jdbc:clickhouse://hadoop162:8123/gmall2023";
    public static final String TOPIC_DWD_USER_REGISTER = "dwd_user_register";
    
    public static final int TWO_DAYS = 2 * 24 * 60 * 60;
    
}
